<?php

if (eregi("footer.php",$_SERVER['SCRIPT_NAME'])) {
    Header("Location: index.php");
    die();
}


function footmsg() {
    global $start_time, $db;

echo "<font class=\"footmsg\">\n";
$end_time = get_microtime();
$total_time = ($end_time - $start_time + $db->time);
$total_time = ""._PAGEGENERATION." ".substr($total_time,0,5)." "._SECONDS.". "._SLTCCSDL.": ".$db->num_queries."";
    
    echo "<br>$total_time<br>"._FOOTCPR."<br>";
    if(defined('_BQMOD') AND _BQMOD != "") {
    	echo ""._BQMOD."<br />";
    }
    echo "<br>";
}


function foot() {
    global $db, $home, $gzip_method, $do_gzip_compress, $name;
    if ($home == 1) {
        blocks(Down, $name);
    }

    themefooter();
    echo "<script language=\"javascript\" src=\"".INCLUDE_PATH."js/avim.js\"></script>\n";
    echo "</body>\n"
        ."</html>";
if($gzip_method == 1) {
if ($do_gzip_compress) {
    $gzip_contents = ob_get_contents();
    ob_end_clean();

    $gzip_size = strlen($gzip_contents);
    $gzip_crc = crc32($gzip_contents);

    $gzip_contents = gzcompress($gzip_contents, 9);
    $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);

    echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
    echo $gzip_contents;
    echo pack('V', $gzip_crc);
    echo pack('V', $gzip_size);
}
}
$db->sql_close();//nukeviet120606
exit();
}

foot();

?>